<?php


class Helper_mdl extends CI_Model
{
	
	const TB_HELPER = 'tb_helper_banner';
	
	public function __construct()
	{
		parent::__construct();
	}
	
	/**
	 * 
	 * 关于我们
	 */
	public function getByTag( $tag )
	{
		$about = array();
		$about = $this->db->where( 'tag', $tag )->get(self::TB_HELPER)->row_array();
				
		return $about;
	}
	
	/**
	 * 修改
	 */
	
	public function updateByTag( $config, $data )
	{
		$this->db->where($config);
		
		return $this->db->update(self::TB_HELPER, $data); 
	}
}